print query statement in laravel

128

laravel print query with parameters -

$query = str_replace(array('?'), array('\'%s\''), $builder->toSql());
$query = vsprintf($query, $builder->getBindings());
dump($query);

Comments

Submit
0 Comments